package lab02.test10;

/**
 * Created by AIR on 2017/10/25.
 */
public class Test {
    //测试类chinapeople
    public static void main(String[] args) {
        ChinaPeople jia=new ChinaPeople();
        jia.name="程嘉星";
        jia.age=19;
        jia.ssex="女";
        jia.sdept="信息与工程系";
        jia.kind="黄种人";
        jia.cap="北京";
        jia.lag="汉语";
        System.out.println(jia.getString());

        //测试类beijingpeople
        BeijingPeople xing=new BeijingPeople();
        xing.name="程嘉星";
        xing.age=19;
        xing.ssex="女";
        xing.sdept="信息与工程系";
        xing.lag="汉语";
        xing.pop=3000;
        xing.habby="看电视";
        System.out.println(xing.getString());

        //测试类Amjericanpeople
        AmJericanPeople cheng=new AmJericanPeople();
        cheng.name="程嘉星";
        cheng.age=19;
        cheng.ssex="男";
        cheng.sdept="数字媒体";
        cheng.kind="白种人";
        cheng.pop=5000;
        cheng.habby="打篮球";
        System.out.println(cheng.getString());





    }




}
